import 'package:get/get.dart';
import 'package:FiduMart/generated/json/base/json_field.dart';
import 'package:FiduMart/generated/json/club_user_entity.g.dart';
import 'dart:convert';
export 'package:FiduMart/generated/json/club_user_entity.g.dart';

@JsonSerializable()
class ClubUserEntity {
	@JSONField(name: "Page")
	double? page;
	List<ClubUserList>? list;
	@JSONField(name: "PageSize")
	double? pageSize;
	@JSONField(name: "Total")
	double? total;

	ClubUserEntity();

	factory ClubUserEntity.fromJson(Map<String, dynamic> json) => $ClubUserEntityFromJson(json);

	Map<String, dynamic> toJson() => $ClubUserEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ClubUserList {
	String? avatar;
	String? userId;
	double? joinType;
	String? guildId;
	String? id;
	double? exitType;
	String? nickName;
	double? joinTime;
	double? memberLevel;
	double? totalContribution;
	double? exitTime;
	int? createdAt;
	int? state;
	String? reason;
	var isSelect = false.obs;
	ClubUserList();

	factory ClubUserList.fromJson(Map<String, dynamic> json) => $ClubUserListFromJson(json);

	Map<String, dynamic> toJson() => $ClubUserListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}